package singleUseDeprecated;

import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import org.junit.Assert;
import org.junit.Test;

public class GetAsCharacterExampleTest2_8_7 {

    @Test
    public void testGetAsCharacter_ValidCharacter() {
        GetAsCharacterExample2_8_7 example = new GetAsCharacterExample2_8_7();

        JsonElement element = new JsonPrimitive("A2");
        char result = example.getAsCharacter(element);

        Assert.assertEquals('A', result);
    }
    @Test
    public void testGetAsCharacter_ValidCharacter2() {
        GetAsCharacterExample2_8_7 example = new GetAsCharacterExample2_8_7();

        JsonElement element = new JsonPrimitive("A2");
        char result = example.getAsCharacter2(element);

        Assert.assertEquals('A', result);
    }



}
